﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
   public sealed class FactoryModelDAO
    {
        private static FactoryModelDAO _CurrentFA;
        public static FactoryModelDAO CurrentFA
        {
            get 
              {
                if (_CurrentFA == null)
                    _CurrentFA = new FactoryModelDAO();
                return _CurrentFA; 
              }
           
        }


        #region ServerExplorer
        public ServerConnectDAO CreateServerConnectDAOInstance()
        {
            return new ServerConnectDAO();
        }

       public TableSelectorDAO CreateTableSelectorDAOInstance()
        {
            return new TableSelectorDAO();
        }
        #endregion


        #region Designer

        public PropertyGridDAO CreatePropertyGridDAOInstance()
         {
           return new PropertyGridDAO();
         }

       public CoreDAO CreateCoreDAOInstance()
        {
            return new CoreDAO();
        }

       public CodeFactaryDAO CreateCodeFactaryDAOInstance()
       {
           return new CodeFactaryDAO(); 
       }
        #endregion



        #region Common

        public OptionDAO CreateOptionDAOInstance()
       {

           return new OptionDAO();
       }

        #endregion
        
    }
}
